﻿using System;
using System.ComponentModel;

using DevExpress.Xpo;
using DevExpress.Data.Filtering;

using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;

namespace DrugShop.Module
{
    [DefaultClassOptions]
    public class 销售退药 : XPObject
    {
        public 销售退药(Session session)
            : base(session)
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here or place it only when the IsLoading property is false:
            // if (!IsLoading){
            //    It is now OK to place your initialization code here.
            // }
            // or as an alternative, move your initialization code into the AfterConstruction method.
        }
        public override void AfterConstruction()
        {
            base.AfterConstruction();
            // Place here your initialization code.
        }
        private string _药品编码;
        [Custom("Caption", "药品编码")]
        public string 药品编码
        {
            get { return _药品编码; }
            set { SetPropertyValue<string>("药品编码", ref _药品编码, value); }
        }
        private string _药品ID;
        [Custom("Caption", "药品ID")]
        public string 药品ID
        {
            get { return _药品ID; }
            set { SetPropertyValue<string>("药品ID", ref _药品ID, value); }
        }
        private string _名称;
        [Custom("Caption", "名称")]
        public string 名称
        {
            get { return _名称; }
            set { SetPropertyValue<string>("名称", ref _名称, value); }
        }
        private string _规格;
        [Custom("Caption", "规格")]
        public string 规格
        {
            get { return _规格; }
            set { SetPropertyValue<string>("规格", ref _规格, value); }
        }
        private string _单位;
        [Custom("Caption", "单位")]
        public string 单位
        {
            get { return _单位; }
            set { SetPropertyValue<string>("单位", ref _单位, value); }
        }
        private int _包装规格;
        [Custom("Caption", "包装规格")]
        public int 包装规格
        {
            get { return _包装规格; }
            set { SetPropertyValue<int>("包装规格", ref _包装规格, value); }
        }
        private decimal _进价;
        [Custom("Caption", "进价")]
        public decimal 进价
        {
            get { return _进价; }
            set { SetPropertyValue<decimal>("进价", ref _进价, value); }
        }
        private decimal _销售价;
        [Custom("Caption", "销售价")]
        public decimal 销售价
        {
            get { return _销售价; }
            set { SetPropertyValue<decimal>("销售价", ref _销售价, value); }
        }
        private int _数量;
        [Custom("Caption", "数量")]
        public int 数量
        {
            get { return _数量; }
            set { SetPropertyValue<int>("数量", ref _数量, value); }
        }
        private int _类型;
        [Custom("Caption", "类型")]
        public int 类型
        {
            get { return _类型; }
            set { SetPropertyValue<int>("类型", ref _类型, value); }
        }
        private string _批号;
        [Custom("Caption", "批号")]
        public string 批号
        {
            get { return _批号; }
            set { SetPropertyValue<string>("批号", ref _批号, value); }
        }
        private string _客户名称;
        [Custom("Caption", "客户名称")]
        public string 客户名称
        {
            get { return _客户名称; }
            set { SetPropertyValue<string>("客户名称", ref _客户名称, value); }
        }
        private DateTime _有效期;
        [Custom("Caption", "有效期")]
        public DateTime 有效期
        {
            get { return _有效期; }
            set { SetPropertyValue<DateTime>("有效期", ref _有效期, value); }
        }
        private DateTime _退药时间;
        [Custom("Caption", "退药时间")]
        public DateTime 退药时间
        {
            get { return _退药时间; }
            set { SetPropertyValue<DateTime>("退药时间", ref _退药时间, value); }
        }
        private string _供应商;
        [Custom("Caption", "供应商")]
        public string 供应商
        {
            get { return _供应商; }
            set { SetPropertyValue<string>("供应商", ref _供应商, value); }
        }
        private string _输入码;
        [Custom("Caption", "输入码")]
        public string 输入码
        {
            get { return _输入码; }
            set { SetPropertyValue<string>("输入码", ref _输入码, value); }
        }


    }

}
